<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>专题详情 - 云南小众旅行地推荐</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    body {
      background-color: #f5f5f5;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      color: #333;
      padding-bottom: 80px;
    }
    
    /* 顶部导航 */
    .top-nav {
      background-color: #3498db;
      padding: 15px 15px;
      color: white;
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .nav-btn {
      color: white;
      font-size: 20px;
    }
    
    /* 专题头部 */
    .topic-header {
      background-color: white;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .topic-category {
      display: inline-block;
      padding: 3px 10px;
      background-color: #f0f7ff;
      color: #3498db;
      border-radius: 4px;
      font-size: 12px;
      margin-bottom: 8px;
    }
    
    .topic-title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
      line-height: 1.4;
    }
    
    .author-info {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }
    
    .author-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 10px;
    }
    
    .author-name {
      font-weight: 500;
      margin-bottom: 3px;
    }
    
    .publish-time {
      font-size: 12px;
      color: #999;
    }
    
    .follow-btn {
      margin-left: auto;
      padding: 5px 12px;
      background-color: #3498db;
      color: white;
      border: none;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 500;
    }
    
    /* 专题内容 */
    .topic-content {
      background-color: white;
      padding: 15px;
      margin-bottom: 10px;
      line-height: 1.6;
      font-size: 16px;
    }
    
    .content-image {
      width: 100%;
      border-radius: 8px;
      margin: 15px 0;
    }
    
    .image-group {
      display: flex;
      gap: 5px;
      margin: 15px 0;
    }
    
    .image-group img {
      flex: 1;
      height: 100px;
      border-radius: 6px;
      object-fit: cover;
    }
    
    .content-paragraph {
      margin-bottom: 15px;
    }
    
    .content-title {
      font-size: 18px;
      font-weight: 600;
      margin: 20px 0 10px;
    }
    
    /* 互动按钮 */
    .action-buttons {
      background-color: white;
      padding: 10px 15px;
      display: flex;
      justify-content: space-around;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      margin-bottom: 10px;
    }
    
    .action-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #666;
      font-size: 12px;
      text-decoration: none;
    }
    
    .action-btn.active {
      color: #e74c3c;
    }
    
    .action-icon {
      font-size: 20px;
      margin-bottom: 5px;
    }
    
    /* 标签 */
    .topic-tags {
      background-color: white;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .tag {
      display: inline-block;
      padding: 5px 12px;
      background-color: #f5f5f5;
      border-radius: 20px;
      font-size: 13px;
      margin-right: 8px;
      margin-bottom: 8px;
      color: #666;
      text-decoration: none;
    }
    
    /* 评论区 */
    .comments-section {
      background-color: white;
      padding: 15px;
    }
    
    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
    }
    
    .comment-count {
      margin-left: 5px;
      color: #999;
      font-weight: normal;
      font-size: 14px;
    }
    
    /* 评论输入框 */
    .comment-input-container {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }
    
    .user-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }
    
    .comment-input {
      flex: 1;
      border: 1px solid #ddd;
      border-radius: 20px;
      padding: 10px 15px;
      font-size: 14px;
      outline: none;
    }
    
    .comment-input:focus {
      border-color: #3498db;
    }
    
    /* 评论列表 */
    .comments-list {
      margin-bottom: 20px;
    }
    
    .comment-item {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .comment-item:last-child {
      border-bottom: none;
    }
    
    .comment-content {
      flex: 1;
    }
    
    .comment-author {
      font-weight: 500;
      font-size: 14px;
      margin-bottom: 5px;
    }
    
    .comment-text {
      font-size: 14px;
      margin-bottom: 8px;
    }
    
    .comment-time {
      font-size: 12px;
      color: #999;
      margin-right: 10px;
    }
    
    .comment-actions {
      display: flex;
      align-items: center;
      font-size: 12px;
    }
    
    .comment-action {
      color: #999;
      margin-right: 15px;
      cursor: pointer;
    }
    
    .comment-action.active {
      color: #e74c3c;
    }
    
    /* 回复列表 */
    .replies-list {
      margin-left: 46px;
      margin-top: 10px;
    }
    
    .reply-item {
      background-color: #f9f9f9;
      border-radius: 8px;
      padding: 8px 10px;
      margin-bottom: 8px;
    }
    
    .reply-header {
      display: flex;
      margin-bottom: 5px;
    }
    
    .reply-author {
      font-weight: 500;
      font-size: 13px;
      margin-right: 5px;
    }
    
    .reply-to {
      color: #999;
      font-size: 13px;
    }
    
    .reply-text {
      font-size: 13px;
      margin-bottom: 5px;
    }
    
    .reply-actions {
      display: flex;
      font-size: 11px;
      color: #999;
    }
    
    .reply-action {
      margin-right: 12px;
      cursor: pointer;
    }
    
    .reply-action.active {
      color: #e74c3c;
    }
    
    /* 加载更多评论 */
    .load-more-comments {
      text-align: center;
      padding: 10px 0;
      color: #3498db;
      font-size: 14px;
      cursor: pointer;
    }
    
    /* 底部操作栏 */
    .bottom-action-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: white;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-top: 1px solid #eee;
      z-index: 90;
    }
    
    .share-btn {
      flex: 0 0 auto;
      padding: 8px 15px;
      background-color: #f5f5f5;
      color: #666;
      border: none;
      border-radius: 20px;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .bottom-comment-input {
      flex: 1;
      border: 1px solid #ddd;
      border-radius: 20px;
      padding: 8px 15px;
      font-size: 14px;
      outline: none;
    }
    
    .emoji-btn {
      background: none;
      border: none;
      font-size: 20px;
      color: #666;
    }
  </style>
</head>
<body>
  <!-- 顶部导航 -->
  <div class="top-nav">
    <button class="btn btn-link p-0 nav-btn" onclick="history.back()">
      <i class="fa fa-arrow-left"></i>
    </button>
    <h1 class="nav-title">专题详情</h1>
    <button class="btn btn-link p-0 nav-btn">
      <i class="fa fa-share-alt"></i>
    </button>
  </div>
  
  <!-- 专题头部 -->
  <div class="topic-header">
    <span class="topic-category">旅行</span>
    <h2 class="topic-title">云南小众旅行地推荐，避开人潮享受真正的自然风光</h2>
    
    <div class="author-info">
      <img src="https://picsum.photos/100/100?random=1" alt="作者头像" class="author-avatar">
      <div>
        <div class="author-name">背包客小明</div>
        <div class="publish-time">发布于 2023-06-15 · 阅读 3.5k</div>
      </div>
      <button class="follow-btn">
        <i class="fa fa-plus"></i> 关注
      </button>
    </div>
  </div>
  
  <!-- 专题内容 -->
  <div class="topic-content">
    <p class="content-paragraph">除了大理丽江，云南还有这些美丽的地方值得一去，每一处都能让你感受到不一样的民族风情和自然景观。这些小众旅行地尚未被过度开发，保留了最原始的自然风光和人文气息。</p>
    
    <h3 class="content-title">1. 沙溪古镇</h3>
    <p class="content-paragraph">沙溪古镇位于大理剑川县，是茶马古道上唯一幸存的古集市。相比丽江古城，这里更加安静古朴，没有过多的商业化，保留了原始的建筑风貌和生活气息。</p>
    <img src="https://picsum.photos/800/500?random=10" alt="沙溪古镇" class="content-image">
    
    <h3 class="content-title">2. 诺邓古村</h3>
    <p class="content-paragraph">诺邓是一个有着上千年历史的白族古村，以火腿闻名。村子坐落在山坡上，民居依山而建，层层叠叠，被誉为"千年白族村"。</p>
    
    <div class="image-group">
      <img src="https://picsum.photos/400/300?random=11" alt="诺邓古村1">
      <img src="https://picsum.photos/400/300?random=12" alt="诺邓古村2">
    </div>
    
    <h3 class="content-title">3. 丙察察公路沿线</h3>
    <p class="content-paragraph">丙察察是滇藏公路建设中最艰难的路段，被称为"第七条进藏公路"。沿途风景原始壮丽，雪山、峡谷、原始森林、瀑布等景观一应俱全，是越野爱好者的天堂。</p>
    <img src="https://picsum.photos/800/500?random=13" alt="丙察察公路" class="content-image">
    
    <h3 class="content-title">旅行小贴士</h3>
    <p class="content-paragraph">1. 这些小众景点交通相对不便，建议自驾或包车前往</p>
    <p class="content-paragraph">2. 部分地区海拔较高，注意预防高原反应</p>
    <p class="content-paragraph">3. 尊重当地少数民族习俗，保护环境</p>
    <p class="content-paragraph">4. 提前了解天气情况，备好合适的衣物</p>
  </div>
  
  <!-- 互动按钮 -->
  <div class="action-buttons">
    <a href="#" class="action-btn active" id="likeBtn">
      <i class="fa fa-heart action-icon"></i>
      <span>点赞 (876)</span>
    </a>
    <a href="#" class="action-btn" id="collectBtn">
      <i class="fa fa-bookmark-o action-icon"></i>
      <span>收藏 (324)</span>
    </a>
    <a href="#" class="action-btn" id="shareBtn">
      <i class="fa fa-share-alt action-icon"></i>
      <span>分享 (156)</span>
    </a>
    <a href="#" class="action-btn" id="reportBtn">
      <i class="fa fa-flag-o action-icon"></i>
      <span>举报</span>
    </a>
  </div>
  
  <!-- 标签 -->
  <div class="topic-tags">
    <a href="#" class="tag">#云南旅行</a>
    <a href="#" class="tag">#小众景点</a>
    <a href="#" class="tag">#自驾游</a>
    <a href="#" class="tag">#自然风光</a>
    <a href="#" class="tag">#茶马古道</a>
  </div>
  
  <!-- 评论区 -->
  <div class="comments-section">
    <h3 class="section-title">
      评论
      <span class="comment-count">(215)</span>
    </h3>
    
    <!-- 评论输入框 -->
    <div class="comment-input-container">
      <img src="https://picsum.photos/100/100?random=20" alt="用户头像" class="user-avatar">
      <input type="text" class="comment-input" placeholder="写下你的评论...">
    </div>
    
    <!-- 评论列表 -->
    <div class="comments-list">
      <!-- 评论1 -->
      <div class="comment-item">
        <img src="https://picsum.photos/100/100?random=21" alt="用户头像" class="user-avatar">
        <div class="comment-content">
          <div class="comment-author">旅行爱好者小李</div>
          <div class="comment-text">沙溪古镇真的很值得一去！去年去过一次，商业化程度很低，当地人也很淳朴，感觉比丽江舒服多了。</div>
          <div class="comment-actions">
            <span class="comment-time">2天前</span>
            <span class="comment-action reply-btn">回复</span>
            <span class="comment-action like-comment-btn active">
              <i class="fa fa-heart-o"></i> 42
            </span>
          </div>
          
          <!-- 回复列表 -->
          <div class="replies-list">
            <div class="reply-item">
              <div class="reply-header">
                <span class="reply-author">背包客小明</span>
                <span class="reply-to">回复 旅行爱好者小李</span>
              </div>
              <div class="reply-text">是的，沙溪确实保留了很多原始风貌，适合喜欢安静的游客。</div>
              <div class="reply-actions">
                <span class="reply-time">1天前</span>
                <span class="reply-action reply-reply-btn">回复</span>
                <span class="reply-action reply-like-btn active">
                  <i class="fa fa-heart-o"></i> 15
                </span>
              </div>
            </div>
            
            <div class="reply-item">
              <div class="reply-header">
                <span class="reply-author">自由的风</span>
                <span class="reply-to">回复 旅行爱好者小李</span>
              </div>
              <div class="reply-text">请问从大理古城怎么去沙溪古镇呢？有公共交通吗？</div>
              <div class="reply-actions">
                <span class="reply-time">18小时前</span>
                <span class="reply-action reply-reply-btn">回复</span>
                <span class="reply-action reply-like-btn">
                  <i class="fa fa-heart-o"></i> 3
                </span>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 评论2 -->
      <div class="comment-item">
        <img src="https://picsum.photos/100/100?random=22" alt="用户头像" class="user-avatar">
        <div class="comment-content">
          <div class="comment-author">摄影发烧友</div>
          <div class="comment-text">丙察察的风景真的绝美！去年自驾走了一趟，虽然路不好走，但沿途的景色绝对值得，特别是在天气好的时候，随手一拍都是大片。</div>
          <div class="comment-actions">
            <span class="comment-time">5天前</span>
            <span class="comment-action reply-btn">回复</span>
            <span class="comment-action like-comment-btn">
              <i class="fa fa-heart-o"></i> 89
            </span>
          </div>
        </div>
      </div>
      
      <!-- 评论3 -->
      <div class="comment-item">
        <img src="https://picsum.photos/100/100?random=23" alt="用户头像" class="user-avatar">
        <div class="comment-content">
          <div class="comment-author">美食探险家</div>
          <div class="comment-text">诺邓的火腿真的名不虚传！去的时候住的农家院，老板做的火腿炖鸡太美味了，现在想起来还流口水。</div>
          <div class="comment-actions">
            <span class="comment-time">1周前</span>
            <span class="comment-action reply-btn">回复</span>
            <span class="comment-action like-comment-btn">
              <i class="fa fa-heart-o"></i> 67
            </span>
          </div>
          
          <!-- 回复列表 -->
          <div class="replies-list">
            <div class="reply-item">
              <div class="reply-header">
                <span class="reply-author">吃货一枚</span>
                <span class="reply-to">回复 美食探险家</span>
              </div>
              <div class="reply-text">请问你住的哪家农家院？有联系方式吗？下个月打算去诺邓。</div>
              <div class="reply-actions">
                <span class="reply-time">6天前</span>
                <span class="reply-action reply-reply-btn">回复</span>
                <span class="reply-action reply-like-btn">
                  <i class="fa fa-heart-o"></i> 8
                </span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 加载更多评论 -->
    <div class="load-more-comments" id="loadMoreComments">
      <i class="fa fa-spinner fa-spin"></i> 加载更多评论
    </div>
  </div>
  
  <!-- 底部操作栏 -->
  <div class="bottom-action-bar">
    <button class="share-btn">
      <i class="fa fa-share-alt"></i> 分享
    </button>
    <input type="text" class="bottom-comment-input" placeholder="写评论...">
    <button class="emoji-btn">
      <i class="fa fa-smile-o"></i>
    </button>
  </div>

  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 点赞功能
    document.getElementById('likeBtn').addEventListener('click', function(e) {
      e.preventDefault();
      this.classList.toggle('active');
      const icon = this.querySelector('i');
      const countText = this.querySelector('span');
      
      if (this.classList.contains('active')) {
        icon.classList.remove('fa-heart-o');
        icon.classList.add('fa-heart');
        countText.textContent = '点赞 (877)';
      } else {
        icon.classList.remove('fa-heart');
        icon.classList.add('fa-heart-o');
        countText.textContent = '点赞 (876)';
      }
    });
    
    // 收藏功能
    document.getElementById('collectBtn').addEventListener('click', function(e) {
      e.preventDefault();
      const icon = this.querySelector('i');
      const countText = this.querySelector('span');
      
      if (icon.classList.contains('fa-bookmark-o')) {
        icon.classList.remove('fa-bookmark-o');
        icon.classList.add('fa-bookmark');
        countText.textContent = '收藏 (325)';
        alert('已收藏该专题');
      } else {
        icon.classList.remove('fa-bookmark');
        icon.classList.add('fa-bookmark-o');
        countText.textContent = '收藏 (324)';
        alert('已取消收藏');
      }
    });
    
    // 分享功能
    document.getElementById('shareBtn').addEventListener('click', function(e) {
      e.preventDefault();
      alert('分享功能：可分享到微信、微博、QQ等平台');
    });
    
    // 举报功能
    document.getElementById('reportBtn').addEventListener('click', function(e) {
      e.preventDefault();
      alert('举报功能：请选择举报原因');
    });
    
    // 评论点赞功能
    document.querySelectorAll('.like-comment-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        this.classList.toggle('active');
        const icon = this.querySelector('i');
        let countText = this.textContent.trim();
        let count = parseInt(countText.match(/\d+/)[0]);
        
        if (this.classList.contains('active')) {
          icon.classList.remove('fa-heart-o');
          icon.classList.add('fa-heart');
          this.innerHTML = `<i class="fa fa-heart"></i> ${count + 1}`;
        } else {
          icon.classList.remove('fa-heart');
          icon.classList.add('fa-heart-o');
          this.innerHTML = `<i class="fa fa-heart-o"></i> ${count - 1}`;
        }
      });
    });
    
    // 回复点赞功能
    document.querySelectorAll('.reply-like-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        this.classList.toggle('active');
        const icon = this.querySelector('i');
        let countText = this.textContent.trim();
        let count = parseInt(countText.match(/\d+/)[0]) || 0;
        
        if (this.classList.contains('active')) {
          icon.classList.remove('fa-heart-o');
          icon.classList.add('fa-heart');
          this.innerHTML = `<i class="fa fa-heart"></i> ${count + 1}`;
        } else {
          icon.classList.remove('fa-heart');
          icon.classList.add('fa-heart-o');
          this.innerHTML = `<i class="fa fa-heart-o"></i> ${count - 1 || ''}`;
        }
      });
    });
    
    // 回复功能
    document.querySelectorAll('.reply-btn, .reply-reply-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        const commentInput = document.querySelector('.bottom-comment-input');
        const author = this.closest('.comment-item, .reply-item').querySelector('.comment-author, .reply-author').textContent;
        
        if (this.classList.contains('reply-reply-btn')) {
          commentInput.value = `回复 @${author}：`;
        } else {
          commentInput.value = `@${author}：`;
        }
        
        commentInput.focus();
        // 滚动到底部
        window.scrollTo({
          top: document.body.scrollHeight,
          behavior: 'smooth'
        });
      });
    });
    
    // 加载更多评论
    document.getElementById('loadMoreComments').addEventListener('click', function() {
      this.innerHTML = '<i class="fa fa-spinner fa-spin"></i> 加载中...';
      
      // 模拟加载延迟
      setTimeout(() => {
        const commentsList = document.querySelector('.comments-list');
        
        // 新评论
        const newComments = `
          <div class="comment-item">
            <img src="https://picsum.photos/100/100?random=24" alt="用户头像" class="user-avatar">
            <div class="comment-content">
              <div class="comment-author">户外爱好者</div>
              <div class="comment-text">请问丙察察现在路况怎么样？普通SUV能走吗？还是必须四驱越野车？计划下个月去。</div>
              <div class="comment-actions">
                <span class="comment-time">2周前</span>
                <span class="comment-action reply-btn">回复</span>
                <span class="comment-action like-comment-btn">
                  <i class="fa fa-heart-o"></i> 23
                </span>
              </div>
            </div>
          </div>
          
          <div class="comment-item">
            <img src="https://picsum.photos/100/100?random=25" alt="用户头像" class="user-avatar">
            <div class="comment-content">
              <div class="comment-author">独行侠</div>
              <div class="comment-text">这些地方适合独自旅行吗？安全方面怎么样？我一个女生想独自去云南。</div>
              <div class="comment-actions">
                <span class="comment-time">2周前</span>
                <span class="comment-action reply-btn">回复</span>
                <span class="comment-action like-comment-btn">
                  <i class="fa fa-heart-o"></i> 31
                </span>
              </div>
              
              <!-- 回复列表 -->
              <div class="replies-list">
                <div class="reply-item">
                  <div class="reply-header">
                    <span class="reply-author">背包客小明</span>
                    <span class="reply-to">回复 独行侠</span>
                  </div>
                  <div class="reply-text">这些地方治安都还不错，不过独自旅行还是要注意安全，提前预订好住宿，告知家人朋友行程。</div>
                  <div class="reply-actions">
                    <span class="reply-time">10天前</span>
                    <span class="reply-action reply-reply-btn">回复</span>
                    <span class="reply-action reply-like-btn active">
                      <i class="fa fa-heart-o"></i> 18
                    </span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        `;
        
        commentsList.insertAdjacentHTML('beforeend', newComments);
        this.innerHTML = '没有更多评论了';
        this.style.color = '#999';
        this.removeEventListener('click', arguments.callee);
        
        // 重新绑定新添加的元素事件
        bindCommentEvents();
      }, 1500);
    });
    
    // 关注作者
    document.querySelector('.follow-btn').addEventListener('click', function() {
      if (this.textContent.includes('关注')) {
        this.innerHTML = '<i class="fa fa-check"></i> 已关注';
        this.style.backgroundColor = '#999';
        alert('已关注 背包客小明');
      } else {
        this.innerHTML = '<i class="fa fa-plus"></i> 关注';
        this.style.backgroundColor = '#3498db';
        alert('已取消关注');
      }
    });
    
    // 评论提交
    const commentInputs = document.querySelectorAll('.comment-input, .bottom-comment-input');
    commentInputs.forEach(input => {
      input.addEventListener('keypress', function(e) {
        if (e.key === 'Enter') {
          const text = this.value.trim();
          if (text) {
            alert(`评论成功：${text}`);
            this.value = '';
          }
        }
      });
    });
    
    // 绑定评论相关事件的函数
    function bindCommentEvents() {
      // 为新添加的评论绑定点赞事件
      document.querySelectorAll('.like-comment-btn:not([data-bound])').forEach(btn => {
        btn.setAttribute('data-bound', 'true');
        btn.addEventListener('click', function() {
          this.classList.toggle('active');
          const icon = this.querySelector('i');
          let countText = this.textContent.trim();
          let count = parseInt(countText.match(/\d+/)[0]);
          
          if (this.classList.contains('active')) {
            icon.classList.remove('fa-heart-o');
            icon.classList.add('fa-heart');
            this.innerHTML = `<i class="fa fa-heart"></i> ${count + 1}`;
          } else {
            icon.classList.remove('fa-heart');
            icon.classList.add('fa-heart-o');
            this.innerHTML = `<i class="fa fa-heart-o"></i> ${count - 1}`;
          }
        });
      });
      
      // 为新添加的回复绑定回复事件
      document.querySelectorAll('.reply-btn:not([data-bound])').forEach(btn => {
        btn.setAttribute('data-bound', 'true');
        btn.addEventListener('click', function() {
          const commentInput = document.querySelector('.bottom-comment-input');
          const author = this.closest('.comment-item').querySelector('.comment-author').textContent;
          commentInput.value = `@${author}：`;
          commentInput.focus();
          window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
        });
      });
    }
    
    // 初始化分享按钮
    document.querySelector('.share-btn').addEventListener('click', function() {
      alert('分享功能：可分享到微信、微博、QQ等平台');
    });
    
    // 初始化表情按钮
    document.querySelector('.emoji-btn').addEventListener('click', function() {
      alert('表情选择面板（即将上线）');
    });
  </script>
</body>
</html>
